package org.kust.bbs.search.repository;

import org.kust.bbs.search.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends ElasticsearchRepository<User, Long> {

    Page<User> queryUsersByNicknameMatches(
            String nickname, Pageable pageable);

}
